<template>
    <!-- 热卖榜 -->
    <view class="hot-wrap">
        <!-- 热卖榜标题开始 -->
        <view class="title-wrap">
            <text>热卖榜</text>
        </view>
        <!-- 热卖榜标题结束 -->

        <view class="content-wrap">
            <TridentFreshGoodsItem v-for="(item, index) in hots" :key="index" :goods="item"/>
        </view>
    </view>
</template>

<script setup lang="ts">
defineProps<{ hots: any }>()
</script>

<style lang="scss">
.hot-wrap {
    padding: 10rpx;
    .title-wrap {
        height: 80rpx;
        line-height: 80rpx;
        background-color: #008000;
        color: #FFF;
        font-size: 32rpx;
        padding-left: 20rpx;
    }

    .content-wrap {
        display: flex;
        flex-wrap: wrap;
    }
}
</style>
